package com.xqboss.apps.dto.consumer;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.*;
import java.math.BigDecimal;

/**
 * 队伍增益规则表
 *
 * @author wangcong
 * @date 2023-08-28
 */
@Data
@ApiModel("队伍增益规则Dto")
public class WebConsumerTeamGainRuleDto {


    private Long id;

    @ApiModelProperty("队伍总打卡次数")
    @NotNull(message = "请输入队伍总打卡次数")
    @Min(value = 0, message = "最小值为0")
    private Integer totalPunch;

    @ApiModelProperty("增益百分比%")
    @NotNull(message = "请输入增益百分比")
    @DecimalMax(value = "100", message = "最大值为100")
    @DecimalMin(value = "0", message = "最小值为0")
    private BigDecimal gain;

}